import request from '@/utils/request'



//获取全部疾病信息
export function getDiseaseList() {
  return request({
    url: '/pet/disease/getAll',
    method: 'get',
  })
}

//获取前5条信息

export function getTop5Disease() {
  return request({
    url: '/pet/disease/getTop5',
    method: 'get',
  })
}

//增加搜索此时
export function plussSearchCount(disease) {
  return request({
    url: '/pet/disease/plussSearchCount',
    method: 'get',
    params:disease
  })
}






// 查询常见疾病列表
export function listDisease(query) {
  return request({
    url: '/pet/disease/list',
    method: 'get',
    params: query
  })
}

// 查询常见疾病详细
export function getDisease(diseaseId) {
  return request({
    url: '/pet/disease/' + diseaseId,
    method: 'get'
  })
}

// 新增常见疾病
export function addDisease(data) {
  return request({
    url: '/pet/disease',
    method: 'post',
    data: data
  })
}

// 修改常见疾病
export function updateDisease(data) {
  return request({
    url: '/pet/disease',
    method: 'put',
    data: data
  })
}

// 删除常见疾病
export function delDisease(diseaseId) {
  return request({
    url: '/pet/disease/' + diseaseId,
    method: 'delete'
  })
}
